<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:extpoint="http://www.ruijie.com.cn/faces/extension">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>#{propertiesAccessor.getProperty('ruijie.project')}</title>
	
	<c:set var="skinPath" value="${facesContext.externalContext.requestContextPath}/skin/default"/>
	
	<link href="${facesContext.externalContext.requestContextPath}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="${facesContext.externalContext.requestContextPath}/favicon.ico" rel="bookmark" type="image/x-icon" />
	<link href="#{skinPath}/ui.css" media="screen" rel="Stylesheet" type="text/css" />
	<link href="#{skinPath}/header.css" media="screen" rel="Stylesheet" type="text/css" />
	<link href="#{skinPath}/layout.css" media="screen" rel="Stylesheet" type="text/css" />
	<link href="#{skinPath}/dialog.css" media="screen" rel="Stylesheet" type="text/css" />
	<link href="#{skinPath}/loading.css" media="screen" rel="Stylesheet" type="text/css" />
	<link href="#{skinPath}/trigger.css" media="screen" rel="Stylesheet" type="text/css" />
	<extpoint:content id="foundation.mainPage.stylesheets" />
	<ui:insert name="stylesheets" />
	
	<script src="${facesContext.externalContext.requestContextPath}/js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/jquery.easing.1.3.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/jquery.hoverIntent.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/jquery.blockUI.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/string.js" type="text/javascript"></script>	
	<script src="${facesContext.externalContext.requestContextPath}/js/queryString.js" type="text/javascript"></script>	
	<script src="${facesContext.externalContext.requestContextPath}/js/ui.js" type="text/javascript"></script>
	<script type="text/javascript">
	//<![CDATA[
		UI.instance = new UI({contextPath:"#{facesContext.externalContext.requestContextPath}", skinPath:"#{skinPath}"});
	//]]>
	</script>
	<script src="${facesContext.externalContext.requestContextPath}/js/layout.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/menu.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/loading.js" type="text/javascript"></script>
	<ui:insert name="jsScripts" >
	<script type="text/javascript">
	//<![CDATA[
		;(function(window) {
			var frameContent = QueryString.instance.get('frameContent');
			var layout = QueryString.instance.get('layout');

			if (String.isEmpty(frameContent) ) {
				frameContent = "/luyuan/mainContentSupport.jsf";
				layout = "layout111";
			} else {
				frameContent = decodeURIComponent(frameContent);
			}
			if (String.isEmpty(layout)) {
				layout = Layout.DEFAULT_LAYER;
			}
			
			jQuery(document).ready(function () {
				Layout.instance.changeLayout(layout, {frameContent: frameContent});
			});
		})(window);
	//]]>
	</script>
	</ui:insert>
</head>
<body onload="javascript:window.status='Finished';">
	<div class="layout">
		<div class="layoutHeader">
			<div class="header">
        <div class="headerBanner clear">
            <div class="headerBannerL">
                <extpoint:content id="foundation.headerPage.bannerArea" order="0"/>
            </div>
            <div class="headerBannerR">
                <div class="capability clear">
                    <div class="capabilityL">
                        <span>
                            <!-- fix input focus bug after iframe layer  -->
                            <input id="focus" type="text" style="border: 0; padding: 0; margin: 0; width: 0; height: 0; "/>
                        </span>
                    </div>
                    <ui:include src="onlineMember/online.xhtml" />
                    <extpoint:content id="foundation.head.messageArea" order="0"/>
                    <div class="capabilityR"></div>
                </div>
            </div>
        </div>
        <div class="headerMenu">
			<div class="menuBar">
				<extpoint:menu id="luyuan.support.menu" />
			</div>
        </div>
    </div>
		</div>
		<div class="layoutMain clear">
			<ui:insert name="contenter" />
		</div>
	</div>

	<script src="${facesContext.externalContext.requestContextPath}/js/dialog.js" type="text/javascript"></script>
	<script src="${facesContext.externalContext.requestContextPath}/js/trigger.js" type="text/javascript"></script>
	<extpoint:content id="foundation.mainPage.script" />
</body>
</html>